#ifndef __APP_LOG_H__
#define __APP_LOG_H__

#include "fwHeader.h"

#if CURRENT_PLATFORM == PLATFORM_ANDROID
#	include <android/log.h> 
#endif

//Support write log
//	LOGI: Infomation log info
//	LOGW: Warning log info
//	LOGE: Error log info
#if CURRENT_PLATFORM == PLATFORM_WIN32
#	define	LOGI(...)	{printf("INFO: "); printf(__VA_ARGS__);}
#	define	LOGW(...)	{printf("WARNING: "); printf(__VA_ARGS__);}
#	define	LOGE(...)	{printf("ERROR: "); printf(__VA_ARGS__);}
#elif CURRENT_PLATFORM == PLATFORM_ANDROID
#	define  LOG_TAG		"GL2_JNI_LIB"
#	define  LOGI(...)	__android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
#	define	LOGW(...)	__android_log_print(ANDROID_LOG_WARN,LOG_TAG,__VA_ARGS__)
#	define  LOGE(...)	__android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__)
#endif

#endif